﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverList.aspx.cs" Inherits="Webcar.Driver.DriverList" %>

<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>
<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<script language = "javaScript" src ="../JavaScript/default.js" type="text/javascript"></script>

<body style="margin:0px 0px 0px 0px; padding:0px 1px 0px 1px; overflow-y:hidden">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div id="DriverList">
        <uc1:NaviBar ID="NaviBar1" runat="server" />
        <div class="s">
        <uc2:SearchPanel ID="SearchPanel1" runat="server" OnSearchClick="Seach_Click" />
        </div>
        <asp:GridView ID="GridView1" runat="server" DataKeyNames="man_code" AutoGenerateColumns="False" Width="100%" SkinID="gridviewSkin" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
            <asp:TemplateField>
                        <ItemTemplate>
                        <div class = "nestedmenu">
                            <asp:Menu ID="DriverMenu" runat="server" Orientation="Vertical"  DisappearAfter="200">
                            <StaticMenuItemStyle CssClass="staticmenu" />
                            <StaticHoverStyle CssClass="staticmenuhover" />
                             <DynamicMenuItemStyle CssClass="dynamicmenu" />
                             <DynamicHoverStyle CssClass="dynamicmenuhover" />
                                <Items>
                                    <asp:MenuItem Text="操作" NavigateUrl="#" Value="操作">
                                        <asp:MenuItem Text="编辑人员信息" Value="编辑" />
                                        <asp:MenuItem Text="人员调动" Value="调动" />
                                        <asp:MenuItem Text="人员停用" Value="停用"/>
                                        <asp:MenuItem Text="驾驶员照片" Value="照片"/>
                                        <asp:MenuItem Text="聘用审批表" Value="审批"/>
                                        
                                    </asp:MenuItem>
                                </Items>
                            </asp:Menu>
                         </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Image ID="Image1" ImageUrl="~/App_Themes/Default/image2/newpost2.gif" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                <asp:TemplateField HeaderText="所属单位">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlDeptname" NavigateUrl="" runat="server" Text='<%# Bind("dept_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="姓名">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlManName" NavigateUrl="" runat="server" Text='<%# Bind("man_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="id" HeaderText="身份证号" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="job_name" HeaderText="用工类别" ItemStyle-HorizontalAlign="Center"/>
                
                <asp:TemplateField HeaderText="车号">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlRecordNo" NavigateUrl="" runat="server" Text='<%# Bind("record_no") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="sex" HeaderText="性别" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="ARCHIVES_NO" HeaderText="档案号" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="drive_no" HeaderText="驾照号" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="drive_kind" HeaderText="准驾车型" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="py_start_date" HeaderText="聘用日期" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="class_level_name" HeaderText="技能" ItemStyle-HorizontalAlign="Center"/>
                
                 <asp:TemplateField HeaderText="状态">
                    
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:Label ID="lblzt" runat="server" Text='<%# Bind("user_zt") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="照片">
                    <ItemStyle CssClass="tableColumns" HorizontalAlign="Center"/>
                    <HeaderStyle CssClass="tableColumns" />
                    <ItemTemplate>
                        <asp:HyperLink ID="hlPhoto" NavigateUrl="" runat="server" Text=''></asp:HyperLink>
                        <asp:Panel ID="photoPanel" runat="server" Style="display: none;position: absolute;">
                            <asp:Image runat="server" ID="manphoto" Width="600px" Height="400px" />
                        </asp:Panel>


                    </ItemTemplate>
                </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="发卡" >
                        <ItemStyle HorizontalAlign="Center" />
                        <ItemTemplate>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <asp:CheckBox ID="CheckBox2" OnCheckedChanged="CheckBox2_CheckedChanged"
                                     ToolTip='<%# Bind("man_code") %>'
                                     AutoPostBack="true" runat="server" Enabled="true" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            
                                    

                        </ItemTemplate>
                    </asp:TemplateField>
                    
                <asp:TemplateField HeaderText="摩驾" >
                        <ItemStyle HorizontalAlign="Center" />
                        <ItemTemplate>
                            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                <ContentTemplate>
                                    <asp:CheckBox ID="CheckBox3" OnCheckedChanged="CheckBox3_CheckedChanged"
                                     ToolTip='<%# Bind("man_code") %>'
                                     AutoPostBack="true" runat="server" Enabled="true" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            
                                    

                        </ItemTemplate>
                    </asp:TemplateField>
               
                
            </Columns>
        </asp:GridView>
        <div class="pager">
            <div class="adddriver">
                [ <asp:LinkButton ID="linkPrint" runat="server" Text="查看打印页" OnClick="linkPrint_Click"></asp:LinkButton>]
                <asp:HyperLink ID="HyperLink1" NavigateUrl="" runat="server">增加驾驶员</asp:HyperLink>
                <asp:CheckBox ID="chkZC" runat="server" Text="正常人员"  Checked="True"/>
                <asp:CheckBox ID="chkBF" runat="server" Text="已停用人员"/>
                 <asp:CheckBox ID="cbNew" Text = "查看新驾驶员" runat="server" />
            </div>
            <div class="p">
                <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
            </div>
        </div>
    </div>    
    </form>
</body>
</html>
